package org.gp.core.service;

import com.baomidou.mybatisplus.service.IService;
import org.gp.core.entity.User;
import org.gp.core.entity.WxUserInfo;
import org.gp.core.entity.dto.ResponseDTO;
import org.gp.core.entity.result.UserInfoResult;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LuoLiang
 * @since 2017-01-24
 */
public interface IUserService extends IService<User> {
    /**
     * 根据微信返回的用户信息生成数据库用户数据
     *
     * @param wxUserInfo
     */
    User wxInitUserByWx(WxUserInfo wxUserInfo);

    /**
     * 根据id查询用户信息
     *
     * @param userId
     * @return
     */
    ResponseDTO<UserInfoResult> wxGetUserInfo(Integer userId);

    ResponseDTO adminLogin(String username, String password);

    ResponseDTO<List<User>> getUserList(Integer currentPage, Integer pageSize, String searchCondition);
}
